OFFSET LIMB

This command will change the relative position of the specified limb within the 3D object.

  Syntax
OFFSET LIMB Object Number, Limb Number, X, Y, Z
OFFSET LIMB Object Number, Limb Number, X, Y, Z, Bounds Flag
  Parameters
Object Number
Integer
The object number
Limb Number
Integer
The limb number
X
Float
The x position value
Y
Float
The y position value
Z
Float
The z position value
Bounds Flag
Integer
if the Bounds Flag is set to one, the entire object shall recalculate its internal bounding box and bounding sphere, used for screen culling

  Returns

This command does not return a value.

  Description

The position of the limb is always offset from the main coordinates of the 3D object and from any parent limbs. Specifying a limb number of zero provides access to the objects own root data, and should not normally be used in this way. The object and limb parameters should be specified using integer values. The offset parameters should be specified using real numbers.

  Example Code
make object cube 1,10
make mesh from object 5,1
add limb 1,1,5
recalcbounds=1
offset limb 1,1,-100,0,0,recalcbounds
move camera -200
wait key
  See also

BASIC3D Commands Menu
Index